#! /bin/bash

file=".touchpadState"
t_state=$(cat $file)

t_state=$(( $(($t_state+1)) % 2 ))
echo $t_state
xinput set-prop "Synaptics TM3336-001" "Device Enabled" $t_state
echo $t_state > $file